{include file="static/appm/tpl_header.html" /}
<body xmlns="http://www.w3.org/1999/html">
<div class="weui-tab container">
    <div class="weui-flex bg-faded aurora-edit-head aurora-fixed-top">
        <div class="weui-flex__item">
            <div class="placeholder">{$data.page_head}</div>
        </div>
        <div class="weui-flex__item">
            <div style="float: right;margin-right: 10px;">
                <a href="{:urlBuild('!.faccount')}" title="财务账单"><i class="fa fa-list text-primary"></i></a>
            </div>
        </div>
    </div>
    <div class="aurora-fixed-bottom"></div>
    <div class="js__form">
        {if condition="isset($data.ref_money)"}
        <div class="weui-cell">
            <div class="weui-cell__bd"></div>
            <div class="weui-cell__ft text-info" style="font-style: oblique;">{$data.ref_msg}</div>
        </div>
        {/if}
        <div class="weui-cells weui-cells_form">
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="date_ipter" class="weui-label">日期</label></div>
                <div class="weui-cell__bd">
                    {$pk_grid|default=""}
                    <input class="weui-input" type="date" id="date_ipter" value="{$data.date|default=''}" emptytips="请设置账单日期" name="date" required>
                </div>
            </div>
            {if condition="isset($data.ref_date)"}
            <div class="weui-cells__tips" style="text-align: right;font-style: italic;">日期参考 {$data.ref_date}</div>
            {/if}
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="date_ipter" class="weui-label">名称</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" name="name" id="name_ipter" value="{$data.name|default=''}"  emptytips="请设置账单名称" name="date" required>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="master_ipter" class="weui-label">事务甲方</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" id="master_ipter" type="text" value="{$data.master|default=''}" readonly emptytips="请设置事务甲方"   required>
                    <input type="hidden" id="masterid_ipter" name="master_id" value="{$data.master_id|default=''}">
                </div>
                <div class="weui-cell__ft">
                    <button class="weui-vcode-btn" id="master_setter_btn">设置</button>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="money_ipter" class="weui-label">金额</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" name="money" value="{$data.money|default=''}"
                           placeholder="输入金额或等式" emptytips="请设置金额"  id="money_ipter" required>
                </div>
            </div>
            {if condition="isset($data.ref_money)"}
            <div class="weui-cells__tips" style="text-align: right;font-style: italic;">金额参考 {$data.ref_money}</div>
            {/if}
        </div>
        <div class="weui-cells__title weui-label">* 科目</div>
        <div class="weui-cells">
            <div class="weui-cell weui-cell_select">
                <div class="weui-cell__bd">
                    <select class="weui-select" name="subject_id" id="subject_ipter" emptytips="请设置科目"  required>
                        {$data.subject_opts}
                    </select>
                </div>
            </div>
        </div>
        <div class="weui-cells__title weui-label">* 类型</div>
        <div class="weui-cells">
            <div class="weui-cell weui-cell_select">
                <div class="weui-cell__bd">
                    <select class="weui-select" name="type" id="type_ipter" required>
                        {$data.type_opts}
                    </select>
                </div>
            </div>
        </div>
        {// 标签}
        <div class="weui-cells">
<!--            <div class="jc-tag-list"></div>-->
            <div class="weui-cell">
                <div class="weui-cell__hd">
                    <label class="weui-label">标签</label>
                </div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" id="tagid_desc_ipter" value="{$data.tagid_desc|default=''}">
                </div>
                <!--<div class="weui-cell__ft">
                    <button class="weui-vcode-btn" id="tagid_setter_brn">设置</button>
                </div>-->
            </div>
            <div class="weui-cells jc-search-choice" style="display: block; transform-origin: 0px 0px; opacity: 1; transform: scale(1, 1);">
            </div>
        </div>
        <!--<div class="weui-cell">
            <div class="weui-cell__hd">
                <label class="weui-label">标签</label>
            </div>
            <div class="weui-cell__bd">
                <input class="weui-input" type="text" id="tagid_desc_ipter" value="{$data.tagid_desc|default=''}">
                <input type="hidden" name="tag_id" id="tagid_ipter" value="{$data.tag_id|default=''}">
            </div>
            <div class="weui-cell__ft">
                <button class="weui-vcode-btn" id="tagid_setter_brn">设置</button>
            </div>
        </div>-->
        <div class="weui-flex aurora-border"></div>
        <div class="weui-cells">
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="slave_ipter" class="weui-label">事务乙方</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" name="slave" id="slave_ipter" value="{$data.slave|default=''}">
                    <input type="hidden" name="slave_id" id="slaveid_ipter" value="{$data.slave_id|default=''}">
                </div>
                <div class="weui-cell__ft">
                    <button class="weui-vcode-btn" id="slave_setter_btn">选择</button>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="city_ipt" class="weui-label">财务城市</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" value="{$data.city|default=''}" name="city" id="city_ipt">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd"><label for="address_ipter" class="weui-label">详细地址</label></div>
                <div class="weui-cell__bd">
                    <input class="weui-input" type="text" name="address" value="{$data.address|default=''}" id="address_ipter">
                </div>
            </div>
        </div>
        <div class="weui-cells__title weui-label">* 描述</div>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <textarea class="weui-textarea" placeholder="输入账单描述" rows="3" name="descrip" id="descrip_ipter" emptytips="请设置描述" required>{$data.descrip|default=''}</textarea>
                <div class="weui-textarea-counter"><span>0</span>/200</div>
            </div>
        </div>
        <div class="weui-flex aurora-border"></div>
        <div class="weui-cells__title weui-label">附加项</div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label for="splan_no_ipter" class="weui-label">财务计划</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input" id="splanno_desc_ipter" type="text" value="{$data.splanno_desc|default=''}" readonly>
                <input type="hidden" id="splan_no_ipter" name="src_plan_no" value="{$data.src_plan_no|default=''}">
            </div>
            <div class="weui-cell__ft">
                <button class="weui-vcode-btn" id="splan_setter_btn">绑定</button>
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <div class="weui-uploader">
                    <div class="weui-uploader__hd">
                        <p class="weui-uploader__title">附件上传</p>
                    </div>
                    <div class="weui-uploader__bd">
                        <ul class="weui-uploader__files" id="uploaderCustomFiles"></ul>
                        <div class="weui-uploader__input-box">
                            <input id="uploaderCustomInput" class="weui-uploader__input" name="attach" type="file" multiple="">
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="weui-flex aurora-border"></div>
    <div class="weui-btn-area">
        <a class="weui-btn weui-btn_primary" href="javascript:" id="submit_lnk">确定</a>
        {if condition="isset($data.pre_url)"}
            <a href="{$data.pre_url}" class="weui-btn weui-btn_plain-default">预览</a>
        {/if}
    </div>
</div>
</body>
</html>
